package cn.meibang.aggragation.beauty.controller;

import cn.apestar.agg.common.security.BaseAuthController;
import cn.apestar.core.framework.page.Page;
import cn.meibang.common.beauty.api.IBcoUserProductAPIService;
import cn.meibang.common.beauty.provider.request.ListRecommendHistoryRequest;
import cn.meibang.common.beauty.provider.response.HistoryRecommendResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by admin on 2017-6-24.
 */
@RestController
@RequestMapping("/bcoHistoryRecommend")
public class BcoHistoryRecommendController extends BaseAuthController {

    @Autowired
    private IBcoUserProductAPIService bcoUserProductAPIService;

    /**
     * 历史推荐单列表接口
     *
     * @param request
     * @return
     */
    @RequestMapping(value = "/listProduct", method = RequestMethod.POST)
    public Page<HistoryRecommendResponse> listProduct(@RequestBody ListRecommendHistoryRequest request) {
        return bcoUserProductAPIService.listProduct(request);
    }

}
